<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>SimDash : Table @yield('title')</title>
	<!-- Styles -->
    <link href="{{ url("assets/css/lib/font-awesome.min.css") }}" rel="stylesheet">
    <link href="{{ url("assets/css/lib/themify-icons.css") }}" rel="stylesheet">
    <link href="{{ url("assets/css/lib/mmc-chat.css") }}" rel="stylesheet" />
    <link href="{{ url("assets/css/lib/sidebar.css") }}" rel="stylesheet">
    <link href="{{ url("css/app.css") }}" rel="stylesheet">
    <link href="{{ url("assets/css/lib/simdahs.css") }}" rel="stylesheet">
    <link href="{{ url("assets/css/style.css") }}" rel="stylesheet">
    @section('style')
        
    @show
</head>
<body>
    <div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
        <div class="nano">
            @section('left')
               <div class="nano-content">
                <ul>
                    <li class="label">Main</li>
                    {{-- 使用Request::getPathInfo()获得当前路由地址，得到的值会多一个/，所以判断的值也要加/ --}}
                    <li class="{{ Request::getPathInfo()=='/userindex'?'active':'' }}"><a href="{{ url("userindex") }}"><i class="ti-home"></i> 查询用户 </a></li>	 
					<li class="label">Form</li>
					<li class="{{ Request::getPathInfo()=='/usercreate'?'active':'' }}"><a href="{{ url("usercreate") }}"><i class="ti-view-list-alt"></i> 新增用户 </a></li>
                </ul>
            </div> 
            @show
        </div>
    </div><!-- /# sidebar -->
    <div class="header" >
        <div class="pull-left">
            <div class="logo" id="sideLogo">
                <a href="index.html">
                    <img class="full-logo" src="{{ url("assets/images/logo-big.png") }}" alt="SimDahs">
                    <img class="small-logo" src="{{ url("assets/images/logo-small.png") }}" alt="SimDahs">
                </a>
            </div>
            <div class="hamburger sidebar-toggle">
                <span class="ti-menu"></span>
            </div>
        </div>
        <div class="pull-right">
            <span class="btn btn-default" onclick="logOut()">退出</span>
        </div>
    </div>
    @section('content')
        
    @show
       
    <script src="{{ url("assets/js/lib/jquery.min.js") }}"></script><!-- jquery vendor -->
    <script src="{{ url("assets/js/lib/jquery.nanoscroller.min.js") }}"></script><!-- nano scroller -->
    <script src="{{ url("assets/js/lib/sidebar.js") }}"></script><!-- sidebar -->
    <script src="{{ url("js/app.js") }}"></script><!-- bootstrap -->
    <script src="{{ url("assets/js/lib/mmc-common.js") }}"></script>
    <script src="{{ url("assets/js/lib/mmc-chat.js") }}"></script>
    <script src="{{ url("assets/js/scripts.js") }}"></script><!-- scripit init-->
    @section('js')
        
    @show
    <script>

        function logOut(){
            if(confirm("是否退出")){
                $.ajax({
                    url:"userLogOut"
                });
            }
        }
    </script>
</body>

</html>